<template>
    <div v-infinite-scroll="load" class="infinite-list" style="overflow: auto">
      <div v-for="i in count" :key="i" class="infinite-list-item">{{ i }}</div>
    </div>
  </template>
  
  <script setup name="404">
  import { ref } from 'vue'
  const count = ref(0)
  const load = () => {
    count.value += 4
  }
  </script>
  
  <style>
  .infinite-list {
    height: 100vh;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .infinite-list .infinite-list-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    background: var(--el-color-primary-light-9);
    margin: 10px;
    color: var(--el-color-primary);
  }
  .infinite-list .infinite-list-item + .list-item {
    margin-top: 10px;
  }
  </style>